import Vue from 'vue'
	import store from '@/store'
	// 服务器1
	let base_url_1 = {
		developmentUrl: 'https://three.back.hciot.com.cn',
		productionUrl: 'https://three.back.hciot.com.cn'
	}
	// 服务器2
	let base_url_2 = {
		developmentUrl: 'http://172.22.112.99:8003',
		productionUrl: 'http://172.22.112.99:8003',
	}
	// 服务器3
	let base_url_3 = {
		developmentUrl: 'https://pv.sohu.com/cityjson',
		productionUrl: '',
	}
	var url_1, url_2, url_3;
	let development = process.env.NODE_ENV === 'development';
	// #ifdef MP
	development = __wxConfig.envVersion === 'develop';
	// #endif
	if (development) {
		console.log('开发环境  url.js')
		url_1 = base_url_1.developmentUrl;
		url_2 = base_url_2.developmentUrl;
		url_3 = base_url_3.developmentUrl;
	} else {
		console.log('生产环境  url.js')
		url_1 = base_url_1.productionUrl;
		url_2 = base_url_2.productionUrl;
		url_3 = base_url_3.productionUrl;
	}
	Vue.prototype.$baseUrl1 = url_1;
	Vue.prototype.$baseUrl2 = url_2;
	Vue.prototype.$baseUrl3 = url_3;
	export var url_1 = url_1;
	export var url_2 = url_2;
	export var url_3 = url_3;
